#ifndef HEALTH_H
#define HEALTH_H
#include"config.h"
#include <QGraphicsTextItem>
#include <QObject>

class Health : public QGraphicsTextItem
{
    Q_OBJECT
public:
    int getHealth(){
        return health;
    }
    Health(QGraphicsItem *parent=nullptr);
    void decrease();
    void increase();
    static Health& getInstance(){
        static Health obj;
        return obj;

    }
    void reset();
private:

    int health=H;
};

#endif // HEALTH_H
